<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <meta name="description" content="MonoCloud">
        <meta name="keywords" content="MonoCloud Service">
        <meta name="author" content="MonoCloud Pty Ltd">
        <title>MITHRIDATE系统管理</title>
        <link rel="stylesheet" href="/static/layui/css/layui.css">
        <link href="/static/index/assets/libs/jquery-toast/jquery.toast.min.css" rel="stylesheet" type="text/css" />
        <link href="/static/index/assets/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
        <link href="/static/index/assets/css/icons.min.css" rel="stylesheet" type="text/css" />
        <link href="/static/index/assets/css/app.min.css" rel="stylesheet" type="text/css" />
        <link href="/static/app/css/layx.min.css" rel="stylesheet" type="text/css" />
        {block name="link"}{/block}
        <style type="text/css">
            body::-webkit-scrollbar {
                display: none;
            }

            a{
                color: #6c757d;
            }
            a:hover{
                color: #00acc1;
            }
            .slimScrollBar{
                background-color: #fff !important;

            }
            .text-truncate2{
                background-size: 12px !important;
            }
            .megamenu-list li a:hover{
                color: #1abc9c;
            }
            .layx-window{
                margin-top: 15px;
            }
            .layui-layer-btn .layui-layer-btn0{
                border-color: #1abc9c !important;
                background-color: #1abc9c !important;
                color: #fff !important;
            }
        </style>
    </head>

    <body>
        <div class="modal fade sys_hc" tabindex="-1" role="dialog" aria-labelledby="myCenterModalLabel" aria-hidden="true" style="display: none;">
            <div class="modal-dialog modal-dialog-centered">
                <div class="modal-content">
                    <div class="modal-header">
                        <h4 class="modal-title" id="myCenterModalLabel"><i class="fe-repeat"></i> 清除缓存</h4>
                        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
                    </div>
                    <div class="modal-body">
                        <form id="formrepeat">
                            <div class="row text-center mb-3 mt-3">
                                <div class="col-md-3">
                                    <div class="checkbox checkbox-success form-check-inline">
                                        <input type="checkbox" id="inlineCheckbox1" name="repeat[]" value="sys">
                                        <label for="inlineCheckbox1"> 系统缓存 </label>
                                    </div>
                                </div>
                                <div class="col-md-3">
                                    <div class="checkbox checkbox-success form-check-inline">
                                        <input type="checkbox" id="inlineCheckbox2" name="repeat[]" value="log">
                                        <label for="inlineCheckbox2"> 日志缓存 </label>
                                    </div>
                                </div>
                                <div class="col-md-3">
                                    <div class="checkbox checkbox-success form-check-inline">
                                        <input type="checkbox" id="inlineCheckbox3" name="repeat[]" value="temp">
                                        <label for="inlineCheckbox3"> 模板缓存 </label>
                                    </div>
                                </div>
                            </div>
                        </form>
                    </div>
                    <div class="modal-footer">
                        <button type="button" id="closesret" class="btn btn-sm btn-secondary waves-effect" data-dismiss="modal">取消</button>
                        <button type="button" onclick="Repeat()" class="btn btn-sm btn-success waves-effect waves-light">确认</button>
                    </div>
                </div><!-- /.modal-content -->
            </div><!-- /.modal-dialog -->
        </div><!-- /.modal -->
        <!-- Begin page -->
<div id="wrapper">
        <!-- Top Bar Start -->
<div class="navbar-custom">
    <ul class="list-unstyled topnav-menu float-right mb-0">
        <li class="dropdown notification-list">
            <a class="nav-link dropdown-toggle  waves-effect waves-light text-success" href="javascript:;" data-toggle="modal" data-target=".sys_hc">
                <i class="fe-repeat"></i>&nbsp;清除缓存
            </a>
        </li>
        <li class="dropdown notification-list">
            <a class="nav-link dropdown-toggle  waves-effect waves-light text-warning" target="_blank" href="/">
                <i class="fe-home"></i>&nbsp;前往首页
            </a>
        </li>
        <li class="dropdown notification-list">
            <a class="nav-link dropdown-toggle nav-user mr-0 waves-effect waves-light" data-toggle="dropdown" href="#" role="button" aria-haspopup="false" aria-expanded="false">
                <img src="/uploads/<?php echo session('admin_info.portrait') ? session('admin_info.portrait') : 'default/gender1.png' ?>" class="rounded-circle">
                <span class="pro-user-name ml-1">
                <?php echo session('admin_info.username') ?> <i class="mdi mdi-chevron-down"></i> 
                </span>
            </a>
            <div class="dropdown-menu dropdown-menu-right profile-dropdown" x-placement="bottom-end" style="position: absolute; will-change: transform; top: 0px; left: 0px; transform: translate3d(-40px, 70px, 0px);">
                <!-- item-->
                <div class="dropdown-header noti-title">
                    <h6 class="text-overflow m-0">Welcome !</h6>
                </div>

                <!-- item-->
                <a href="{:url('admin/modify_info')}" class="dropdown-item notify-item">
                    <i class="fe-user"></i>
                    <span>完善资料</span>
                </a>
                <!-- item-->
                <a href="{:url('admin/modify_pass')}" class="dropdown-item notify-item">
                    <i class="fe-lock"></i>
                    <span>修改密码</span>
                </a>
                <div class="dropdown-divider"></div>
                <!-- item-->
                <a href="/admin/login/logout" class="dropdown-item notify-item">
                    <i class="fe-log-out"></i>
                    <span>安全退出</span>
                </a>
            </div>
        </li>
       

        <!-- <li class="dropdown notification-list">
            <a href="{:url('user/certification')}" class="nav-link right-bar-toggle waves-effect waves-light">
                <i class="fe-settings noti-icon"></i>
            </a>
        </li> -->
    </ul>
    <!-- LOGO -->
    <div class="logo-box">
        <a href="" class="logo text-center">
            <span class="logo-lg">
                <span class="logo-lg-text-light">MITHRIDATE</span>
            </span>
            <span class="logo-sm">
                <span class="logo-sm-text-dark">MITHRIDATE</span>
            </span>
        </a>
    </div>
    <ul class="list-unstyled topnav-menu topnav-menu-left m-0">
        <li>
            <button class="button-menu-mobile waves-effect waves-light">
                <i class="fe-menu"></i>
            </button>
        </li>
    </ul>
</div>
<!-- Top Bar End -->
        <div class="left-side-menu">
    <div class="slimscroll-menu">
        <!--- Sidemenu -->
        <div id="sidebar-menu">
            <ul class="metismenu" id="side-menu">
                <li class="menu-title">Navigation</li>
                {foreach $menu as $key => $val}
                <li>
                    <a href="{$val['url']}">
                        <i class="{$val['icon']}"></i>
                        <span> {$val['name']} </span>
                        {if condition="$val['child']"}
                        <span class="menu-arrow"></span>
                        {/if}
                    </a>
                    {if condition="$val['child']"}
                    <ul class="nav-second-level" aria-expanded="false">
                        {foreach $val['child'] as $k => $v}
                        <li>
                            <a href="{$v['act']}">{$v['name']}</a>
                        </li>
                        {/foreach}
                    </ul>
                    {/if}
                </li>
                {/foreach}

            </ul>
        </div>
        <!-- End Sidebar -->
        <div class="clearfix"></div>
    </div>
    <!-- Sidebar -left -->
</div>
<div class="content-page" tabindex="-1">
<!-- Start content -->
{block name="content"}{/block}

</div> <!-- content-page -->
        <footer class="footer text-right">
            <span id="toastr-nine"> M-CLUB 平台</span>
        </footer>
    </div>
    <!-- END wrapper -->
    <script>
        var resizefunc = [];
        function Repeat(e){
            var data = $('#formrepeat').serialize();
            $.post('/admin/system/clear', data, function(res){
                if(res.code == 0){
                    layer.msg(res.message,{icon:1, time:1000, shade: [0.2, '#000']});
                    setTimeout(function(){
                        $('#closesret').click();
                        $(".repeat").attr("checked",false);
                        $("#formrepeat")[0].reset();
                    },1500);
                    // $("#content_table").load(location.href+" #content_table");  //局部刷新
                }else{
                    layer.msg(res.message,{icon:5, anim: 6, time:1000, shade: [0.2, '#000']});
                }
            },'json');
        }

    </script>
    
    <!-- Vendor js -->
    <script src="/static/index/assets/js/vendor.min.js"></script>

    <!-- <script src="/static/index/assets/js/popper.min.js" ></script>
    <script src="/static/index/assets/js/bootstrap.min.js" ></script> -->
    <script src="/static/index/assets/js/detect.js" ></script>
    <script src="/static/index/assets/js/fastclick.js" ></script>

    <script src="/static/index/assets/js/jquery.slimscroll.js" ></script>
    <script src="/static/index/assets/js/jquery.blockUI.js" ></script>


    <script src="/static/index/assets/js/wow.min.js" ></script>
    <script src="/static/index/assets/js/jquery.nicescroll.js" ></script>
    <script src="/static/index/assets/js/jquery.scrollTo.min.js" ></script>
    
    <!-- <script src="/static/index/assets/js/app.min.js" ></script> -->
    <script src="/static/app/cripts/layx.min.js" type="text/javascript"></script>
</body>

    {block name="js"}{/block}

    <script src="/static/index/assets/js/app.min.js" ></script>
       
</html>